<?php include_once 'channel_header.php' ;?>
<!--主体内容-->
<div class="main channel">

		<?php for($i=0; $i<count($channels); $i=$i+2){?>
		<div class="topiclist">
			<dl class="topic">
				<dt><a href="###"><img src="images/brand/<?php echo $channels[$i]['photo']; ?>" class="imgh2" /></a></dt>
				<dd><a href="###"><b><?php echo $channels[$i]['username'].$i; ?></b>: <?php echo $channels[$i]['content']; ?></a></dd>
			</dl>
			<dl class="topic mt12">
				<dt><a href="###"><img src="images/brand/<?php echo $channels[$i+1]['photo']; ?>" class="imgh2" /></a></dt>
				<dd><a href="###"><b><?php echo $channels[$i+1]['username']; ?></b>: <?php echo $channels[$i+1]['content']; ?></a></dd>
			</dl>
		</div>
		<?php }?>

	<div class="float_both"></div>
    <div class="mt24"></div>
    <div class="area">
    	<ul class="area_list">
		<?php foreach( $channeltype as $key => $val ){ ?>
			<li><a href="###"<?php if($key == $channeltype[0]){echo ' class="this"';}?>><?php echo $key;?></a></li>
		<?php } ?>
        <span class="c_search"><form action="index.php"><input type="text" onFocus="this.value=''" value="搜微博、找人" class="c_search_text" /><input type="submit" class="c_search_submit" value="" /></form></span>
        </ul>
    </div>
	<div class="float_both"></div>
	<?php foreach( $channeltypeArr as $val ){ ?>
	<div class="area_type"<?php if($channeltypeArr[0]==$val){}else{echo ' style="display:none"';}?>>
		<?php foreach($channeltype[$val] as $guanbo){ ?>
		<a href="###"<?php if( $channeltype[$val][0] == $guanbo ){ echo ' class="this"';}?>><?php echo $guanbo[2];?></a>
		<?php } ?>
	</div>
	<?php } ?>
	<div class="float_both"></div>
    <div class="mt24"></div>
	
<?php foreach( $channelqy['qyinfo'] as $qyinfo ){?>
    <div class="wlist">
    	<div class="title"><?php echo $qyinfo[3]?></div>
        <div class="content">
        	<img src="images/brand/<?php echo $qyinfo[2];?>" />
            <span class="text"><?php echo $qyinfo[4];?></span>
            <span class="join"><a href="#<?php echo $qyinfo[0];?>">加 入</a></span>
            <span class="follownum"><?php echo $qyinfo[5];?>人已收听</span>
            <span class="cblog"><a href="guanbo.php?uid=<?php echo $qyinfo[0];?>">进入官博</a></span>
            <div class="float_both"></div>
        </div>
        <div class="wfollow">
        	<div class="wfollow_all" id="wfollow_all">
    			<label for="all"><input type="checkbox" onclick="allChecked(wfollow_all,wfollow_list)" /> 全选</label>
        	</div>
            <div class="wfollow_list" id="wfollow_list">
		<?php for( $i=1; $i<=13; $i++ ){ ?>
    	<label for="f<?php echo $qyinfo[0]."_".$i;?>">
            <span><img src="images/user01.jpg" width="40" height="40"/><br />voo_doo</span>
            <input type="checkbox" name="follow" id="f<?php echo $qyinfo[0]."_".$i;?>" />
		</label>
		<?php } ?>
            </div>
            <div class="float_both"></div>
			<div class="wfollow_more"><a href="###">查看更多 &gt;&gt;</a></div>        
        </div>
    </div>
    <div class="float_both"></div>
    <div class="mt24"></div>
<?php } ?>
	
    <div class="loading" style="display:none;">加载中...</div>
</div>
<!--底部-->
<?php include_once 'footer.php' ;?>
